﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediaScraper.DataAccess.Entities
{
    public interface IUniqueEntity<TPrimaryKey>
    {
        TPrimaryKey Id { get; set; }
    }

    public class UniqueEntity<TPrimaryKey> : BaseEntity, IUniqueEntity<TPrimaryKey>
    {
        [Key] 
        public virtual TPrimaryKey Id { get; set; }
    }

    public class BaseEntity
    {
    }
}
